class Tag < ActiveRecord::Base
  belongs_to :wallet
  has_and_belongs_to_many :operations

  validates_presence_of :wallet

  validates_presence_of :name
  validates_uniqueness_of :name, :scope => :wallet_id
end
